package com.tarena.lbs.coupon.service;

import com.tarena.lbs.base.protocol.exception.BusinessException;
import com.tarena.lbs.base.protocol.pager.PageResult;
import com.tarena.lbs.coupon.pojo.param.CouponParam;
import com.tarena.lbs.coupon.pojo.query.CouponQuery;
import com.tarena.lbs.coupon.pojo.vo.CouponVO;

public interface CouponService {
    Integer createCoupon(CouponParam param) throws BusinessException;
    CouponVO getCouponDetail(Integer Id) throws BusinessException;
    PageResult<CouponVO> pageList(CouponQuery query);

    void deleteCouponId(Integer id) throws BusinessException;

    void receiveCoupon(Integer userId, Integer couponId);
    
    // 添加更新优惠券启用状态的方法
    void updateCouponEnableStatus(Integer id, Integer enableStatus) throws BusinessException;
}